package com.zp.mvppractice.beans;

import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.Keep;

import java.io.Serializable;

/**
 * Created by izp on 2017/5/22.
 */
@Keep
public class Customer implements Parcelable,Serializable {
    /**
     * customer_contacts :
     * customer_phone :
     * customer_user : 叫康康
     * customer_address :
     * customer_tel :
     * customer_email :
     * customer_createtime : 2017-05-17 21:25:06
     * customer_user_id : 177
     * customer_name : 交通银行
     * user_id : 177
     * customer_data :
     * customer_label :
     * customer_company_id : 0
     * customer_id : 560
     * customer_fax :
     * user_nickname : vicky
     */

    private String customer_contacts;
    private String customer_phone;
    private String customer_user;
    private String customer_address;
    private String customer_tel;
    private String customer_email;
    private String customer_createtime;
    private String customer_name;
    private String customer_data;
    private String customer_label;
    private String customer_fax;
    private String user_nickname;

    private int sms_send;
    private Long customer_user_id;
    private Long customer_company_id;
    private Long customer_id;
    private Long user_id;


    public String getCustomer_contacts() {
        return customer_contacts;
    }

    public Customer setCustomer_contacts(String customer_contacts) {
        this.customer_contacts = customer_contacts;
        return this;
    }

    public String getCustomer_phone() {
        return customer_phone;
    }

    public Customer setCustomer_phone(String customer_phone) {
        this.customer_phone = customer_phone;
        return this;
    }

    public String getCustomer_user() {
        return customer_user;
    }

    public Customer setCustomer_user(String customer_user) {
        this.customer_user = customer_user;
        return this;
    }

    public String getCustomer_address() {
        return customer_address;
    }

    public Customer setCustomer_address(String customer_address) {
        this.customer_address = customer_address;
        return this;
    }

    public String getCustomer_tel() {
        return customer_tel;
    }

    public Customer setCustomer_tel(String customer_tel) {
        this.customer_tel = customer_tel;
        return this;
    }

    public String getCustomer_email() {
        return customer_email;
    }

    public Customer setCustomer_email(String customer_email) {
        this.customer_email = customer_email;
        return this;
    }

    public String getCustomer_createtime() {
        return customer_createtime;
    }

    public Customer setCustomer_createtime(String customer_createtime) {
        this.customer_createtime = customer_createtime;
        return this;
    }

    public String getCustomer_name() {
        return customer_name;
    }

    public Customer setCustomer_name(String customer_name) {
        this.customer_name = customer_name;
        return this;
    }

    public String getCustomer_data() {
        return customer_data;
    }

    public Customer setCustomer_data(String customer_data) {
        this.customer_data = customer_data;
        return this;
    }

    public String getCustomer_label() {
        return customer_label;
    }

    public Customer setCustomer_label(String customer_label) {
        this.customer_label = customer_label;
        return this;
    }

    public String getCustomer_fax() {
        return customer_fax;
    }

    public Customer setCustomer_fax(String customer_fax) {
        this.customer_fax = customer_fax;
        return this;
    }

    public String getUser_nickname() {
        return user_nickname;
    }

    public Customer setUser_nickname(String user_nickname) {
        this.user_nickname = user_nickname;
        return this;
    }

    public int getSms_send() {
        return sms_send;
    }

    public Customer setSms_send(int sms_send) {
        this.sms_send = sms_send;
        return this;
    }

    public Long getCustomer_user_id() {
        return customer_user_id;
    }

    public Customer setCustomer_user_id(Long customer_user_id) {
        this.customer_user_id = customer_user_id;
        return this;
    }

    public Long getCustomer_company_id() {
        return customer_company_id;
    }

    public Customer setCustomer_company_id(Long customer_company_id) {
        this.customer_company_id = customer_company_id;
        return this;
    }

    public Long getCustomer_id() {
        return customer_id;
    }

    public Customer setCustomer_id(Long customer_id) {
        this.customer_id = customer_id;
        return this;
    }

    public Long getUser_id() {
        return user_id;
    }

    public Customer setUser_id(Long user_id) {
        this.user_id = user_id;
        return this;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.customer_contacts);
        dest.writeString(this.customer_phone);
        dest.writeString(this.customer_user);
        dest.writeString(this.customer_address);
        dest.writeString(this.customer_tel);
        dest.writeString(this.customer_email);
        dest.writeString(this.customer_createtime);
        dest.writeString(this.customer_name);
        dest.writeString(this.customer_data);
        dest.writeString(this.customer_label);
        dest.writeString(this.customer_fax);
        dest.writeString(this.user_nickname);
        dest.writeInt(this.sms_send);
        dest.writeValue(this.customer_user_id);
        dest.writeValue(this.customer_company_id);
        dest.writeValue(this.customer_id);
        dest.writeValue(this.user_id);
    }

    public Customer() {
    }

    protected Customer(Parcel in) {
        this.customer_contacts = in.readString();
        this.customer_phone = in.readString();
        this.customer_user = in.readString();
        this.customer_address = in.readString();
        this.customer_tel = in.readString();
        this.customer_email = in.readString();
        this.customer_createtime = in.readString();
        this.customer_name = in.readString();
        this.customer_data = in.readString();
        this.customer_label = in.readString();
        this.customer_fax = in.readString();
        this.user_nickname = in.readString();
        this.sms_send = in.readInt();
        this.customer_user_id = (Long) in.readValue(Long.class.getClassLoader());
        this.customer_company_id = (Long) in.readValue(Long.class.getClassLoader());
        this.customer_id = (Long) in.readValue(Long.class.getClassLoader());
        this.user_id = (Long) in.readValue(Long.class.getClassLoader());
    }

    public static final Creator<Customer> CREATOR = new Creator<Customer>() {
        public Customer createFromParcel(Parcel source) {
            return new Customer(source);
        }

        public Customer[] newArray(int size) {
            return new Customer[size];
        }
    };
}
